<%@ page language="java"  pageEncoding="UTF-8"%>
<%	
		String username = (String)session.getAttribute("username");
		if(username == null){
			%>
				<form action="login" id="loginForm" method="post">
					 <br />
					 <span>账号：</span><input type="text" name="name" id="name" value="请输入账号" /> <input value = "登陆" type="button" name="logbutton" id="logbutton" onclick="loginForm()" /><br /><br />
					 <span>密码：</span><input type="password" name="pw" id="pw"/> <a href = "signIn.jsp">&nbsp;&nbsp;注册</a>
				</form>
			<%
		}else{
			%>
			<form action="login" id="loginForm" method="post">
				 <br />
				 <span>账号：</span><input type="text" name="name" id="name" value="<%=username %>" /> <input value = "登陆" type="button" name="logbutton" id="logbutton" onclick="loginForm()" /><br /><br />
				 <span>密码：</span><input type="password" name="pw" id="pw"/> <a href = "signIn.jsp">&nbsp;&nbsp;注册</a>
			</form>
			<p style = "color:#f33;margin-left:50px">用户名和密码不匹配</p>
			<%
		}
 %>

